package com.atguigu.yygh.host.repository;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author DongYu Zhou
 * @date 2022/6/24 21:49
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    Schedule getByHosScheduleId(String hosScheduleId);

    List<Schedule> getByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
